package com.example.demo.controller;

import com.example.demo.dao.CollectionDao;
import com.example.demo.model.CollectionEntity;
import com.example.demo.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CollectionController {
    @Autowired
    CollectionDao collectionDao;

    @PostMapping("/api/collection")
    public String insert(CollectionEntity collection) {
//        collectionDao.save(collection);
        return Result.success();
    }
}
